Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: refactor vncauth.c #562

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ygerlach
Copy link

I have reorganized parts of the code to be more readable and probably more performant as well (one fwrite and fread instead of single byte writes and reads).

for (i = 0; i < 8; i++) {
putc(encryptedPasswd[i], fp);
}
fwrite(encryptedPasswd, 1, sizeof(encryptedPasswd), fp);

Check failure

Code scanning / CodeQL

Cleartext storage of sensitive information in file

This write into file 'fp' may contain unencrypted data from [this source.](1).
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not changed that. Its storing the same bytes in the file as before.
The Ci is not wrong, but i am not making it worse.

@ygerlach
Copy link
Author

ygerlach commented Jul 6, 2023

@bk138 what is up with this PR? Do i need to change something?

@bk138
Copy link
Member

bk138 commented Jul 6, 2023

@bk138 what is up with this PR? Do i need to change something?

I haven't found the time yet to have a look, lotsa €€€-work to do. Will eventually check back!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants